package org.iqiyi.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sun.istack.internal.NotNull;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NonNull;

import java.io.Serializable;

@ApiModel(value = "视频model")
@Data
@TableName(value = "video")
public class VideoEntity implements Serializable {
    public static final String IS_SHOW = "is_show";
    public static final String ID = "id";
    public static final String DATA_ACTIVE = "data_active";
    private Long id;
    @ApiModelProperty(value = "标题")
    @NotNull
    private String title;
    @NotNull
    @ApiModelProperty(value = "封面图片")
    @TableField(value = "cover_img")
    private String coverImg;
    @NotNull
    @ApiModelProperty(value = "视频地址")
    @TableField(value = "video_url")
    private String videoUrl;

    @ApiModelProperty(value = "是否展示")
    @TableField(value = "is_show")
    private String isShow;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time")
    private String createTime;

    @ApiModelProperty(value = "开始时间")
    @TableField(value = "start_time")
    private String startTime;

    @ApiModelProperty(value = "结束时间")
    @TableField(value = "end_time")
    private String endTime;

    @TableField(value = "data_active")
    private Integer dataActive;

    @TableField(value = "type_id")
    private String typeId;
}
